<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<ui:composition   xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:h="http://java.sun.com/jsf/html"
                  xmlns:a4j="http://richfaces.org/a4j"
                  xmlns:rich="http://richfaces.org/rich"
                  xmlns:f="http://java.sun.com/jsf/core"
                  xmlns:ui="http://java.sun.com/jsf/facelets"> 
                  
  <h:form>                  
            <rich:panel>
                   <f:facet name="header">
                   			view all my tickets
                   			<h:outputText value="Created successfully !" rendered="#{ticketBean.ticketCreated}"/> 
		                   <a4j:status name="panelUpdateStatus">
		                    <f:facet name="start">
		                        (Working, please wait...)
		                    </f:facet>
		                   </a4j:status>
                   </f:facet>
               


        <rich:dataTable value="#{ticketBean.currentUser.initiatedTickets}" var="teckit" id="table">
                    
	            <rich:column  id="issuedate" >
	                <f:facet name="header">
	                    Issue date
	                </f:facet>
	                
	   <a4j:commandLink  actionListener="#{main.goToViewTicket}" value="#{teckit.issueDate}" render="mainArea" /> 

	        
	            </rich:column>
	            
	            <rich:column  id="status" >
	                <f:facet name="header">
	                   Status
	                </f:facet>
	                <h:outputText value="#{teckit.status.statusName}" />
	            </rich:column>
	            
	            
	            <rich:column  id="priority" >
	                <f:facet name="header">
	                    Priority
	                </f:facet>
	                <h:outputText value="#{teckit.priority.priorityName}" />
	            </rich:column>
	           
	           
	           	<rich:column  id="type" >
	                <f:facet name="header">
	                    Type
	                </f:facet>
	                <h:outputText value="#{teckit.ticketType.ticketTypeName}" />
	            </rich:column>
	            
	             
        </rich:dataTable>
        
        <a4j:log></a4j:log>
                   

</rich:panel>


</h:form>  
            
</ui:composition>

